<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Edit Amenity</title>
        
        <link rel="stylesheet" href="css/dbpedia/style.css" type="text/css" />
        <link rel="stylesheet" href="css/dbpedia/highlighter.css" type="text/css" />
        
        <script type="text/javascript" src="js/jquery/jquery-1.8.3.min.js"></script>
    </head>
    <body>
        <%@include file="header.jsp" %>        
        <br>
        <h1>&nbsp;Edit Amenity (id: ${model.amenity.id})</h1>

        <form action="amenity.htm" method="post" >
            <table cellpadding="5" cellspacing="5">
                <tr>
                    <td>Title:</td>
                    <td><input type="text" name="title" style="width:400px; padding: 3px;" value="${model.amenity.title}"/></td>
                </tr>
                <tr>
                    <td>Description:</td>
                    <td><input type="text" name="lat" style="width:200px; padding: 3px;" value="${model.amenity.description}"/></td>
                </tr>
                <tr>
                    <td>Notes:</td>
                    <td><input type="text" name="lng" style="width:200px; padding: 3px;" value="${model.amenity.notes}"/></td>
                </tr>                
                <tr>
                    <td></td>
                    <td>
                        <input type="submit" value="Submit" />
                        <input type="hidden" name="id" value="${model.amenity.id}" />
                        <input type="hidden" name="a" value="4" />
                        <input type="hidden" name="s" value="1" />
                    </td>
                </tr>
            </table>
        </form>

        <br>
        <hr>
        <br>
        
        <!--
        <form action="place.htm" method="post" enctype="multipart/form-data">
            <fieldset>
                <legend>Add Photos</legend>
                <label for="filename_1">File: </label>
                <input id="filename_1" type="file" name="filename_1" size="100"/><br/>
                <label for="filename_2">File: </label>
                <input id="filename_2" type="file" name="filename_2" size="100"/><br/>
                <label for="filename_3">File: </label>
                <input id="filename_3" type="file" name="filename_3" size="100"/><br/>
                <label for="filename_4">File: </label>
                <input id="filename_4" type="file" name="filename_4" size="100"/><br/>
                <label for="filename_5">File: </label>
                <input id="filename_5" type="file" name="filename_5" size="100"/><br/>

                <br>

                <input type="submit" value="Submit" />
                <input type="hidden" name="a" value="6" />
                <input type="hidden" name="s" value="1" />
                <input type="hidden" name="id" value="${model.place.id}" />
                
            </fieldset>
        </form>

        <div id="map_canvas" style="width:90%; height:400px; position:relative; left:5%"></div>

        <br><br>
        -->
        
    </body>
</html>
